package router

import (
	"ChatingYourself/api"
	"github.com/gin-gonic/gin"
)

func Router() *gin.Engine {
	router := gin.Default()
	router.POST("/register", api.Register)
	router.POST("/test", api.Test)
	router.POST("/login", api.Login)
	router.POST("/add_friend", api.AddFriend)
	router.POST("/shake_window", api.ShakeWindow)
	router.POST("/forget1", api.FindPassword1)
	router.POST("/forget2", api.FindPassword2)
	router.GET("/ws", api.WebsocketPing)
	return router
}
